@import url("../libs/bootstrap/dist/css/bootstrap.css");
@import url("./iconfont.css");
@import url("./diy.css");

body {
    width: 100%;
    height: 100%;
    min-width: 1440px;
    color: #333;
    font-size: 12px;
    margin: 0;
    padding: 0;
    background: #f5f7f9;
}

.page-editor-container {
    margin: 60px 170px 0 130px;
    background: #f5f7f9;
    padding: 0px 20px 0px 20px;
    display: block;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    position: relative;
    height: auto;
}

.page-editor {
    width: 100%;
    background: #fff;
    padding: 20px 30px;
    position: relative;
    height: auto;
    overflow: hidden;
}

.diy-page {
    position: relative;
}

.diy-phone {
    float: left;
    width: 328px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    padding: 10px;
    overflow: hidden;
    margin-bottom: 290px;
}

.diy-phone .phone-head {
    height: 44px;
    background: #fff;
    position: relative;
}

.diy-phone .phone-head:before {
    content: "";
    position: absolute;
    top: 15px;
    left: 112px;
    height: 8px;
    width: 8px;
    background: #ddd;
    border-radius: 8px;
}

.diy-phone .phone-head:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 128px;
    height: 8px;
    width: 50px;
    background: #ddd;
    border-radius: 8px;
}

.diy-phone .phone-title {
    height: 54px;
    background: url("../img/wx-top.png") 0 0 no-repeat;
    background-size: 100% auto;
    padding: 0 50px;
    font-size: 15px;
    color: #fff;
    text-align: center;
    line-height: 68px;
    cursor: default;
    overflow: hidden;
    display:block;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.diy-phone .phone-main {
    min-height: 400px;
    border: 1px solid #ddd;
    border-top: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.diy-phone .phone-main p {
    margin: 0;
    padding: 0;
}

.diy-phone .phone-main .highlight {
    height: 50px;
    border: 2px dashed #999;
    text-align: center;
    font-size: 16px;
    color: #999;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.diy-phone .phone-main .drag {
    position: relative;
    min-height: 20px;
    display: block;
    overflow: hidden;
}

.diy-phone .phone-main .drag.selected:before,
.diy-phone .phone-main .drag:hover:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px dashed #00a0e9;
    cursor: move;
    z-index: 10;
}

.diy-phone .phone-main .drag.fixed:before {
    cursor: default;
}

.diy-phone .phone-main .drag .btn-edit-del {
    height: 16px;
    position: absolute;
    right: 2px;
    bottom: 2px;
    display: none;
    z-index: 90;
}

.diy-phone .phone-main .drag .btn-edit-del > div {
    width: 32px;
    height: 16px;
    line-height: 16px;
    display: inline-block;
    text-align: center;
    font-size: 10px;
    color: #fff;
    background: rgba(0,0,0,.4);
    margin-left: 2px;
    cursor: pointer;
    position: relative;
    z-index: 11;
}


.diy-phone .phone-main .drag.selected .btn-edit-del ,
.diy-phone .phone-main .drag:hover .btn-edit-del {
    display: block;
}

.diy-phone .phone-main .drag.nodelete .btn-edit-del .btn-del {
    display: none;
}

.diy-phone .phone-main a {
    color: #337ab7;
}

.diy-phone .phone-foot {
    height: 24px;
    width: 60px;
    margin: 15px auto 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.diy-editor {
    float: left;
    width: 494px;
    height: auto;
    background: #fdfdfd;
    padding: 15px 10px;
    margin-left: 18px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-top: 55px;
    display: none;
    margin-bottom: 260px;
}
.diy-editor .editor-arrow {
    height: 0;
    position: relative;
}

.diy-editor .editor-arrow:after,
.diy-editor .editor-arrow:before {
    position: absolute;
    font-family: simsun;
    content: "◆";
    top: 8px;
    left: -21px;
    display: block;
    width: 9px;
    height: 18px;
    font-size: 24px;
    color: #fdfdfd;
    z-index: 111;
}

.diy-editor .editor-arrow:after {
    left: -22px;
    color: #ddd;
    z-index: 11;
}

.diy-editor .form-group {
    margin: 5px 0;
}
.diy-editor .form-group .control-label {
    padding: 5px 0;
    text-align: right;
}
.diy-editor .form-group .form-control {
    padding: 0 5px;
}
.diy-editor .form-group .noblr {
    border-left: 0;
    border-right: 0;
}
.diy-editor .color {
    padding: 0;
    cursor: pointer;
}
.diy-editor .form-group .ui-slider {
    margin-top: 4px;
}

.diy-editor .form-items {
    height: auto;
}

.diy-editor .form-items.indent {
    margin: 0 14px;
}

.diy-editor .form-items .inner {
    height: auto;
}

.diy-editor .form-items .inner .item {
    height: auto;
    background: #fff;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e7eaec;
    border-radius: 3px;
    overflow: hidden;
}

.diy-editor .form-items .inner .highlight {
    border: 2px dashed #e7eaec;
    margin-bottom: 10px;
    text-align: center;
    font-size: 16px;
    color: #ccc;
}

.diy-editor .form-items .inner .item .btn-del {
    height: 0;
    width: 100%;
    display: block;
    position: relative;
}

.diy-editor .form-items .inner .item .btn-del:before {
    content: "×";
    position: absolute;
    height: 16px;
    width: 16px;
    text-align: center;
    line-height: 14px;
    color: #fff;
    cursor: pointer;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    top: -6px;
    right: -6px;
    z-index: 10;
}

.diy-editor .form-items .inner .item .item-image {
    height: 70px;
    width: auto;
    min-width: 40px;
    max-width: 220px;
    background: #eee;
    float: left;
    margin-right: 10px;
    border: 1px solid #e7eaec;
    position: relative;
}

.diy-editor .form-items .inner .item .item-image img {
    height: 68px;
    width: auto;
    max-width: 220px;
    display: block;
}

.diy-editor .form-items .inner .item .item-image.square {
    width: 70px;
    height: 70px;
}
.diy-editor .form-items .inner .item .item-image.square img {
    width: 68px;
    height: 68px;
}

.diy-editor .form-items .inner .item .item-image .text {
    height: 20px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    position: absolute;
    cursor: pointer;
}

.diy-editor .form-items .inner .item .item-image.drag-btn {
    font-size: 14px;
    line-height: 68px;
    text-align: center;
    cursor: move;
}

.diy-editor .form-items .inner .item .item-image .icon-main {
    height: 50px;
    width: 68px;
    line-height: 50px;
    text-align: center;
    background: #fff;
}

.diy-editor .form-items .inner .item .item-image .icon-main .icon {
    font-size: 30px;
}

.diy-editor .form-items .inner .item .item-form {
    height: auto;
    display: block;
    overflow: hidden;
}

.diy-editor .form-items .inner .item .title {
    padding-bottom: 10px;
}

.diy-editor .form-items .inner .item .title-child {
    padding-bottom: 10px;
    padding-top: 10px;
}
.diy-editor .form-items .inner .item .item-body.child {
    margin-bottom: 10px;
    background: #fff;
}
.diy-editor .line {
    height: 10px;
    width: 100%;
    position: relative;
}
.diy-editor .line:before {
    height: 0;
    content: '';
    position: absolute;
    bottom: 5px;
    left: 14px;
    right: 14px;
    border: 1px dashed #eee;
}

.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control {
    background: #f7f7f7;
}


.diy-menu {
    width: 840px;
    height: auto;
    background: #fdfdfd;
    margin-right: -455px;
    border: 1px solid #ddd;
    border-radius: 3px;
    position: fixed;
    bottom: 0;
    right: 50%;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    z-index: 999;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}
.diy-menu .navs,
.diy-menu .action {
    height: auto;
}

.diy-menu .navs {
    padding: 22px 24px;
    border-bottom: 1px dotted #ddd;
    display: block;
    position: relative;
    display:-webkit-box;
    display:-webkit-flex;
    display:-ms-flexbox;
    display:flex;
}
.diy-menu .navs .title{
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}
.diy-menu .navs .btns-local .title{
    padding-left: 24px;
}

.diy-menu .navs .btns-global{
    width: 96px;
}
.diy-menu .navs .btns-local{
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.diy-menu .navs nav {
    width: 72px;
    height: 26px;
    padding: 0;
    margin: 0 14px 10px 0;
    line-height: 24px;
    border: 1px solid #dddddd;
    text-align: center;
    border-radius: 2px;
}
.diy-menu .navs .btns-global nav{
    height: 40px;
    line-height: 38px;
}

.diy-menu .navs nav.page-setup{
    width: auto;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 12px;
    right: 12px;
    border-color: #fff;
    line-height: 12px;
}
.diy-menu .navs nav.page-setup:hover{
    border-color: #fff;
}
.diy-menu .navs nav.special {
    background: #f4f4f4;
}

.diy-menu .navs nav:hover {
    background: #fff;
    border: 1px solid #00aeff;
    transition: all 0.4s;
    -moz-transition: all 0.4s;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
}

.diy-menu .navs nav:active {
    -webkit-box-shadow: inset 1px 3px 5px rgba(0,0,0,0.2);
    box-shadow: inset 1px 3px 5px rgba(0,0,0,0.2);
}

.diy-menu .action {
    padding: 10px;
    text-align: right;
    position: relative;
}

.diy-menu .action:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 100%;
}

.diy-menu .action nav {
    margin-right: 5px;
}

.wb-container.right-panel .diy-menu {
    margin-right: -540px;
}

.wb-nav.fold~.wb-subnav~.wb-container .diy-menu {
    margin-right: -420px;
}
.wb-nav.fold~.wb-subnav~.wb-container.right-panel .diy-menu {
    margin-right: -505px;
}

.wb-nav~.wb-subnav.fold~.wb-container .diy-menu {
    margin-right: -400px;
}

.wb-nav~.wb-subnav.fold~.wb-container.right-panel .diy-menu {
    margin-right: -485px;
}


.wb-nav.fold~.wb-subnav.fold~.wb-container .diy-menu {
    margin-right: -365px;
}
.wb-nav.fold~.wb-subnav.fold~.wb-container.right-panel .diy-menu {
    margin-right: -450px;
}


.form-horizontal .checkbox, .form-horizontal .checkbox-inline, .form-horizontal .radio, .form-horizontal .radio-inline {
    padding-top: 6px;
}

.has-error .form-control:focus, .has-error .single-line:focus {
    border-color: #ed5565 !important;
}

.w840 {
    width: 840px;
    margin: auto;
}




.d-flex {
    display: -webkit-box; /* Chrome 4+, Safari 3.1, iOS Safari 3.2+ */  
    display: -moz-box; /* Firefox 17- */  
    display: -webkit-flex; /* Chrome 21+, Safari 6.1+, iOS Safari 7+, Opera 15/16 */  
    display: -moz-flex; /* Firefox 18+ */  
    display: -ms-flexbox; /* IE 10 */  
    display: flex; /* Chrome 29+, Firefox 22+, IE 11+, Opera 12.1/17/18, Android 4.4+ */  
    flex-wrap: wrap;
}

/* 水平方向 */
.flex-row {
    flex-direction: row !important;
}
.flex-row-reverse {
    flex-direction: row-reverse !important;
}

/* 垂直方向 */
.flex-column {
    -webkit-box-orient: vertical !important;
    -ms-flex-direction: column !important;
    -webkit-flex-direction: column !important;
    flex-direction: column !important;
}
.flex-column-reverse {
    -webkit-box-orient: vertical-reverse !important;
    -ms-flex-direction: column-reverse !important;
    -webkit-flex-direction: column-reverse !important;
    flex-direction: column-reverse !important;
}

/* 内容排列 */
.justify-content-start {
    -webkit-box-pack: start !important;
    -ms-flex-pack: start !important;
    -webkit-justify-content: flex-start !important;
    justify-content: flex-start !important;
}
.justify-content-end {
    -webkit-box-pack: end !important;
    -ms-flex-pack: end !important;
    -webkit-justify-content: flex-end !important;
    justify-content: flex-end !important;
}
.justify-content-center {
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    -webkit-justify-content: center !important;
    justify-content: center !important;
}
.justify-content-between {
    -webkit-box-pack: justify !important;
    -ms-flex-pack: justify !important;
    -webkit-justify-content: space-between !important;
    justify-content: space-between !important;
}
.justify-content-around {
    justify-content: space-around !important;
}

/* 等宽 */
.flex-fill {
    flex: 1 1 auto !important;
}

/* 扩展 */
.flex-grow-1 {
    flex-grow: 1 !important;
}

.media {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: start;
  align-items: flex-start;
}

.media-body {
  -ms-flex: 1;
  flex: 1;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}